using System;
using System.Linq.Expressions;

namespace jSLCore.Service.Workflow.Linq.jProperty
{
    public class jExpressionPropertyAttribute : Attribute
    {
        private readonly string _propertyName;
        private readonly string _subPropertyName;

        public jExpressionPropertyAttribute(string propertyName,string subPropertyName)
        {
            _propertyName = propertyName;
            _subPropertyName = subPropertyName;
        }

        internal string SubPropertyName
        {
            get { return _subPropertyName; }
        }

        internal string PropertyName
        {
            get { return _propertyName; }
        }
    }
}